home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 260_01 / cu.doc < prev    next >
Text File  |  1988-02-23  |  3KB  |  77 lines

  1. CU(1)                                                                    CU(1)
  2.  
  3.  
  4. NAME
  5.         cu - call UNIX
  6.  
  7. SYNOPSIS
  8.         cu <telno> [-s<speed>] [-l<device>]
  9.  
  10. DESCRIPTION
  11.         Cu  calls  up  an  UNIX  system,  a  terminal,  or possibly a
  12.         non-UNIX system. It manages an  interactive conversation with
  13.         possible  transfer of  text files.  <telno> is the  telephone
  14.         number, with minus  signs  at  apropriate  places for delays.
  15.         <speed> gives the transmission speed (300, 1200, 2400);  1200
  16.         is the default value.
  17.  
  18.         The '-l' option may be used to specify 'COM2' serial port.
  19.  
  20.         Lines entered begining with '~' have special meanings.
  21.  
  22.         The following are interpreted by the sending part:
  23.         ~.               terminate the conversation.
  24.         ~EOT             terminate the conversation.
  25.         ~<file           send the contents of <file> to the remote
  26.                          system, as though typed at the terminal.
  27.         ~!               invoke an interactive shell on the local
  28.                          system.
  29.         ~!cmd ...        run the command on the local system.
  30.         ~$cmd ...        run the command locally and send its output
  31.                          to the remote system.
  32.         ~%take from [to] copy file 'from' (on the remote system) to
  33.                          file 'to' on the local system. If 'to' is
  34.                          omitted, the 'from' name is used in both
  35.                          places.
  36.         ~%put from [to]  copy file 'from' (on local system) to file
  37.                          'to' on remote system. If 'to' is omitted, the
  38.                          'from' name is used in both places.
  39.         ~~...            send the line '~...'
  40.  
  41.         The following are interpreted by the receiving part:
  42.         ~>[>][:]file
  43.         zero or more lines to be written to a file
  44.         ~>
  45.  
  46.         In  any  case, output is diverted (or appended, if '>>' used)
  47.         to the file. If ':' is used, the diversion is silent i.e., it
  48.         is  written  only  to  the file. If ':' is omitted, output is
  49.         written  both  to  the  file  and to the standard output. The
  50.         trailing '~>' terminates the diversion.
  51.  
  52.         The  use  of '~%put' or '~%take' requires 'stty' and 'cat' on
  53.         the  remote  side.  It  also  requires that the current erase
  54.         character on the remote system be EOT (ASCII 004).
  55.         
  56.         Cursor keys will cause VT-100 escape sequences to be sent. If
  57.         an ANSI  driver is active  (such as ANSI.SYS  or  NANSI.SYS),
  58.         escape sequences  sent by the host will be treated,  giving a
  59.         poor man's VT-100 emulation.
  60.  
  61.  
  62. BUGS
  63.         
  64.         Be cautious when sending files with the '~<file' command thru
  65.         a packet switched network. Sometimes characters are lost.
  66.         
  67.         The '~%put' and '~%take' functions have not been tested. Send
  68.         me bug reports!        
  69.         
  70.         
  71. AUTHOR
  72.         
  73.         Francois Bergeon
  74.         3 rue des Sports
  75.         27380 CHARLEVAL
  76.         FRANCE
  77.